/*
 * Phone.cpp
 *
 *  Created on: 30 Μαϊ 2010
 *      Author: Sartios
 */

#include "Phone.h"

namespace Teacher {

Phone::Phone(){

}

Phone::Phone(const string *number,const string *category) {
	if((0!=number)&&(0!=category)){
		setNumber(number);
		setCategory(category);
	}

}

Phone::~Phone() {
	delete number_;
	delete category_;
}

void	Phone::setNumber(const string *number){
	if(0!=number){
		number_=new string(*number);
	}
}

string	*	Phone::getNumber()const{
	if(NULL!=number_){
		return number_;
	}
}

void	Phone::setCategory(const string *category){
	if(0!=category){
		category_=new string(*category);
	}
}

string	*	Phone::getCategory()const{
if(NULL!=category_){
	return category_;
}
}
}
